//
//  IDOLaunchAdButton.h
//  IDOLaunchAd
//
//  Created by 卓勇  on 2017/6/7.
//  Copyright © 2017年 zhuoyong. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 *  倒计时类型
 */
typedef enum : NSUInteger {
    Circle      = 1,    // 圆形进度条(防招行)
    Default     = 2     // 倒计时+跳过
} IDOLaunchAdButtonType;

@interface IDOLaunchAdButton : UIButton

/**
 *  圆形进度按钮的进度条宽度(默认3)
 */
@property (nonatomic, assign) CGFloat circleLineWidth;

/**
 * 圆形_进度条进度
 */
@property (nonatomic, assign) CGFloat circleProgress;

- (instancetype)initWithFrame:(CGRect)frame LaunchAdButtonType:(IDOLaunchAdButtonType)type;

- (void)stateWithLaunchAdButtonType:(IDOLaunchAdButtonType)type andDuration:(CGFloat)duration;

@end
